﻿<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8" />
		<title>千泓研修院-登录</title>
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<link rel="stylesheet" type="text/css" href="__STATIC__/index/css/style-32d071d90c.css" />
		<link rel="stylesheet" type="text/css" href="__STATIC__/index/css/address-5c90513ab8.css" />
	</head>

	<body>
		<div class="bg-wrap">
			<div class="header-wrap">
				<div class="logo-l">
					<a class="weimob" href="https://edu.qian-hong.com"><img src="__STATIC__/index/img/edus.png" alt="千泓研修院"></a>
				</div>
			</div>
			<div class="main-cont-wrap reg-model">
				<form id="signUpForm">
					<div class="form-title g-mb40"><span class="s-txt-c s-fs20">登录</span>
						<p class="f-fr">
							<a class="s-txt-gy1 s-fs14 g-mr5 g-vta-m login" href="{:url('index/index/register')}">注册</a><img alt="" src="__STATIC__/index/img/arrow.svg"></p>
					</div>
					<div class="ui-form-item g-mb30">
						<span class="ui-form-txt">登录账号</span>
						<input class="ui-form-input" id="phone" name="tel" maxlength="11" placeholder="请填写手机号码" type="text" value="18270723799">
					</div>

					<div class="ui-form-item g-mb30"><span class="ui-form-txt">登录密码</span>
						<input class="ui-form-input1" id="pwd" name="pwd" placeholder="6～16位字符" autocomplete="new-password"  minlength="6" maxlength="16" type="password" value="cjs18270723799">
						<a class="ui-toggle f-fr toggle" href="javascript:;"></a>
					</div>
					<div class="ui-form-btn g-mb20">
						<input class="ui-button" id="submit" type="submit" value="登录">
					</div>
					<div id="messageBox"></div>
					<div id="tcaptcha"></div>
				</form>
			</div>
			<div class="footer-wrap">
				<p class="s-tac s-txt-gy1">Copyright © <script>document.write(new Date().getFullYear());</script> 深圳千泓网络科技有限公司版权所有</p>
			</div>
		</div>
		<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
		<script type="text/javascript">
			$('#submit').on('click',function () {
				$.ajax({
					type:"post",
					url:"{:url('index/Index/check')}",
					data: {
						tel: $('#phone').val(),
						pwd: $('#pwd').val()
					},
					success:  function (e) {
						if (e.success) {
							window.localStorage.setItem('update_login_status',new Date().getTime());
							window.location.href="{:url('admin/index/index')}";	
						}
					}
				});
				return false;
			});
		</script>
	</body>

</html>